package com.yunxi.model.sat;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 客户跟进记录表
 * </p>
 *
 * @author caoYong
 * @since 2019-07-11
 */
@Data
@TableName("pms_sat_customer_follow")
@ApiModel(value="SatCustomerFollow对象", description="客户跟进记录表")
public class SatCustomerFollow implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "FOLLOW_ID", type = IdType.UUID)
    private String followId;

    @ApiModelProperty(value = "客户ID")
    @TableField("CUSTOMER_NO")
    private String customerNo;

    @ApiModelProperty(value = "渠道编号")
    @TableField("PARTNER_CODE")
    private String partnerCode;

    @ApiModelProperty(value = "跟进事项(Customer_FollowItem,1首次来店,2试乘试驾,3定金订单,4开票,5交车,6电话跟进,7上门拜访,8战败)")
    @TableField("FOLLOW_ITEM")
    private String followItem;

    @ApiModelProperty(value = "跟进方式(Customer_FollowStyle,1电话,2展厅,3短信,4市场活动)")
    @TableField("FOLLOW_STYLE")
    private String followStyle;

    @ApiModelProperty(value = "跟进前客户级别(Customer_IntentionLevel,1O,2H,3A,4B,5C,6其他,7战败)")
    @TableField("LEVEL")
    private String level;

    @ApiModelProperty(value = "战败原因(Customer_LoseReason,1失控,2失联,3其他)")
    @TableField("LOST_REASON")
    private String lostReason;

    @ApiModelProperty(value = "跟进结果")
    @TableField("FOLLOW_REASULT")
    private String followReasult;

    @ApiModelProperty(value = "计划跟进事项(Customer_FollowItem,1首次来店,2试乘试驾,3定金订单,4开票,5交车,6电话跟进,7上门拜访,8战败)")
    @TableField("PLAN_FOLLOW_ITEM")
    private String planFollowItem;

    @ApiModelProperty(value = "计划跟进方式(Customer_FollowStyle,1电话,2展厅,3短信,4市场活动)")
    @TableField("PLAN_FOLLOW_STYLE")
    private String planFollowStyle;

    @ApiModelProperty(value = "计划跟进时间")
    @TableField("PLAN_FOLLOW_TIME")
    private Date planFollowTime;

    @ApiModelProperty(value = "完成跟进时间")
    @TableField("COMPLETE_FOLLOW_TIME")
    private Date completeFollowTime;

    @ApiModelProperty(value = "跟进状态(Customer_FollowStatus,0未完成,1已完成)")
    @TableField("FOLLOW_STATUS")
    private Integer followStatus;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "CREATE_TIME",fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    @TableField(value = "CREATE_BY",fill = FieldFill.INSERT)
    private String createBy;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "UPDATE_TIME",fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "修改人")
    @TableField(value = "UPDATE_BY",fill = FieldFill.UPDATE)
    private String updateBy;

    @ApiModelProperty(value = "状态1启用0禁用")
    @TableField("STATUS")
    private Integer status;

    @ApiModelProperty(value = "是否删除")
    @TableField("IS_DEL")
    private Integer isDel;

    @ApiModelProperty(value = "备注")
    @TableField("MEMO")
    private String memo;

    @ApiModelProperty(value = "跟进描述")
    @TableField("FOLLOW_DESC")
    private String followDesc;

    @ApiModelProperty(value = "跟进次数")
    @TableField("FOLLOW_COUNT")
    private String followCount;

    @ApiModelProperty(value = "是否试驾")
    @TableField("IS_DRIVER")
    private String isDriver;

    @ApiModelProperty(value = "未试驾原因")
    @TableField("NO_DRIVER_CAUSE")
    private String noDriverCause;

    @ApiModelProperty(value = "跟进,回访及ITMC跟踪状态")
    @TableField("FOLLOW_STATE")
    private String followState;

    @ApiModelProperty(value = "实际到店事项及发生动作")
    @TableField("FACT_TOUCH_ITEM")
    private String factTouchItem;

    @ApiModelProperty(value = "实际接触时间")
    @TableField("FACT_TOUCH_TIME")
    private String factTouchTime;

    @ApiModelProperty(value = "迁移数据实际接触时间")
    @TableField("AWAY_TIME")
    private String awayTime;

    @ApiModelProperty(value = "预计来店动作")
    @TableField("FORECASTR_ITEM")
    private String forecastrItem;

    @ApiModelProperty(value = "跟进后客户级别(Customer_IntentionLevel,1O,2H,3A,4B,5C,6其他,7战败)")
    @TableField("NEW_CUSTLEVEL")
    private String newCustlevel;

    @ApiModelProperty(value = "是否老客户跟进(1是,0否)")
    @TableField("IS_OLD_CUSTOMER_FOLLOW")
    private Integer isOldCustomerFollow;


}
